home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Sapphire Collection / Software Vault (Sapphire Collection) (Digital Impact).ISO / cdr08 / finst152.zip / FINSTALL.CP_ / FINSTALL.CP
Text File  |  1994-07-30  |  981b  |  52 lines

  1. /*--------------------------------------------------------------------------
  2.  
  3. Copyright (c) 1994 by Ka Iok Tong, All Rights Reserved.
  4.  
  5. ---------------------------------------------------------------------------*/
  6.  
  7.  
  8. #define STRICT
  9.  
  10.  
  11. #ifdef _MSC_VER                                                   /* microsoft */
  12. #undef  isborland
  13. #else                                                               /* borland */
  14. #define isborland
  15. #endif
  16.  
  17.  
  18. #ifndef __WINDOWS_H
  19. #include "windows.h"
  20. #endif
  21. #ifndef __ICTRLLER_H
  22. #include "ictrller.h"
  23. #endif
  24.  
  25.  
  26. extern installcontroller *createic(HINSTANCE inst, HINSTANCE pinst);
  27.  
  28.  
  29. HINSTANCE inst;
  30.  
  31.  
  32. #ifdef isborland
  33. #pragma argsused
  34. #endif
  35.  
  36. int PASCAL WinMain(HINSTANCE instx, HINSTANCE pinst, LPSTR cmd, int cmdshow)
  37. {
  38.    int r;
  39.    installcontroller *ic;
  40.  
  41.    inst = instx;
  42.  
  43.    if ((ic = createic(inst, pinst)) == 0)
  44.    {
  45.       return 1;
  46.    }
  47.    r = ic->run() ? 0 : 1;
  48.    delete ic;
  49.    return r;
  50. }
  51.  
  52.